﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<hsgsSHXX.Model.jkda>
@using MvcContrib.UI.Grid;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>诊疗数据</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    
    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }
        <script type="text/javascript" language="javascript">
        function iframeAutoFit() {
            var ex;
            try {
                if (window != parent) {
                    var a = parent.document.getElementsByTagName("IFRAME");
                    for (var i = 0; i < a.length; i++) {
                        if (a[i].contentWindow == window) {
                            var h1 = 0, h2 = 0;
                            if (document.documentElement && document.documentElement.scrollHeight) {
                                h1 = document.documentElement.scrollHeight;
                            }
                            if (document.body) h2 = document.body.scrollHeight;
                            var h = Math.max(h1, h2);
                            if (window.ActiveXObject) { h += 4; }
                            else { h += 4; }
                            a[i].style.height = h + "px";
                            window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                        }
                    }
                }
            }
            catch (ex) { }
        }
    </script>
</head>
<body onload="iframeAutoFit()">
@if (Model.Count > 0)
{
<h5>健康档案</h5>
    <div>

 <table width="3200" border="1" cellspacing="1" cellpadding="1" class="grid">
  <tr>
    <th align="center" >id</th>
    <th align="center" >档案编号</th>
    <th align="center" >家庭编号</th>
    <th align="center" >姓名</th>
    <th align="center" >性别</th>
    <th align="center" >出生日期</th>
    <th align="center" >血型</th>
    <th align="center" >联系类别</th>
    <th align="center" >联系方式</th>
    <th align="center" >婚姻</th>
    <th align="center" >职业</th>
    <th align="center" >工作单位</th>
    <th align="center" >文化程度</th>
    <th align="center" >与户主关系</th>
    <th align="center" >证件类型</th>
    <th align="center" >证件号码</th>
    <th align="center" >身份证号</th>
    <th align="center" >保险类别</th>
    <th align="center" >保险号</th>
    <th align="center" >居住地址省</th>
    <th align="center" >居住地址市</th>
    <th align="center" >居住地址县</th>
    <th align="center" >居住地址街道镇</th>
    <th align="center" >居住地址社区村</th>
    <th align="center" >小区路名</th>
    <th align="center" >弄名</th>
    <th align="center" >号名</th>
    <th align="center" >房间名</th>
    <th align="center" >责任医生</th>
    <th align="center" >建档人</th>
    <th align="center" >建档机构</th>
    <th align="center" >管理机构</th>
    <th align="center" >管理服务站</th>
    <th align="center" >建档时间</th>
    <th align="center" >档案状态</th>
    <th align="center" >档案来源</th>
  </tr>
@{foreach (var item in Model)
  {  
  <tr>
    <td align="center">@item.ID</td>
    <td align="center">@item.dabh</td>
    <td align="center">@item.jtbh</td>
    <td align="center">@item.xm</td>
    <td align="center">@item.xb</td>
    <td align="center">@item.csrq</td>
    <td align="center">@item.xx</td>
    <td align="center">@item.lxlb</td>
    <td align="center">@item.lxfs</td>
    <td align="center">@item.hy</td>
    <td align="center">@item.zy</td>
    <td align="center">@item.whcd</td>
    <td align="center">@item.gzdw</td>
    <td align="center">@item.yhzgx</td>
    <td align="center">@item.zjlx</td>
    <td align="center">@item.zjhm</td>
    <td align="center">@item.sfzh</td>
    <td align="center">@item.bxlb</td>
    <td align="center">@item.bxh</td>
    <td align="center">@item.jzdzs</td>
    <td align="center">@item.jzdzs1</td>
    <td align="center">@item.jzdzx</td>
    <td align="center">@item.jzdzjdz</td>
    <td align="center">@item.jzdzsqc</td>
    <td align="center">@item.xqlm</td>
    <td align="center">@item.nm</td>
    <td align="center">@item.hm</td>
    <td align="center">@item.fjm</td>
    <td align="center">@item.zrys</td>
    <td align="center">@item.jdr</td>
    <td align="center">@item.jdjg</td>
    <td align="center">@item.gljg</td>
    <td align="center">@item.glfwz</td>
    <td align="center">@item.jdsj</td>
    <td align="center">@item.dazt</td>
    <td align="center">@item.daly</td>
  </tr>
  } 
} 
</table>
        

    </div>

    <div class="clear">
        <span style="float: left; ">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>&nbsp;&nbsp;
        @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "left", FirstPageText = "&lt;&lt;", LastPageText = "&gt;&gt;" }, new { style = "" })
    </div>

}
</body>
</html>
